// @ts-ignore
/* eslint-disable */
import request from "@/libs/request";
export async function listMultiQuestionByPageUsingPost(
  body: API.MultiQuestionRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageQuestionVO_>(
    "/api/multi/list/questionBank",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    },
  );
}

export async function listMultiByPageUsingPost(
  body: API.MultiQuestionRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageMultiQuestionVO_>("/api/multi/list/page", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

export async function listMultiVoByPageUsingPost(
  body: API.MultiQuestionRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageMultiQuestionVO_>(
    "/api/multi/list/page/vo",
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    },
  );
}
export async function MultiQuestionAddRequest(
  body: API.MultiQuestion,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageMultiQuestionVO_>("/api/multi/add", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}
export async function MultiQuestionUpdateRequest(
  body: API.MultiQuestion,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageMultiQuestionVO_>("/api/multi/update", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

export async function MultiQuestionDeleteRequest(
  params: API.MultiDelQuestion,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>("/api/multi/del", {
    method: "GET",
    headers: {
      "Content-Type": "application/json",
    },
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

export async function MultiQuestionRemarkUsingPost(
  body: API.MultiQuestionRemarkRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>("/api/multi/remark", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

export async function MultiQuestionRecordsUsingPost(
  body: API.MultiQuestionRecordsRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageQuestionVO_>("/api/multi/record", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

export async function aiGenerateMultiQuestionsUsingPost(
  body: API.QuestionAIGenerateRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>("/api/multi/ai/generate", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}
